<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CryptoAuthLib: hal_linux_kit_cdc.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CryptoAuthLib
   </div>
   <div id="projectbrief">Microchip CryptoAuthentication Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00362_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">hal_linux_kit_cdc.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00362.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifndef HAL_LINUX_KIT_CDC_H_</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define HAL_LINUX_KIT_CDC_H_</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">// Kit USB defines</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="a03537.html#ga08b6c05184266dc4d5c8727bb9c1c754">   39</a></span>&#160;<span class="preprocessor">#define CDC_DEVICES_MAX     10      </span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="a03537.html#ga5ac8c9377f90d6ce3044f81f900a54fe">   40</a></span>&#160;<span class="preprocessor">#define CDC_BUFFER_MAX      1024    </span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor"></span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">// Each device that is found will have a read handle and a write handle</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="a03537.html#ga069bb8cb95b0528d5ce0304bb5561a40">   44</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="a03537.html#ga069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="a03537.html#ga5fdc7facea201bfce4ad308105f88d0c">   45</a></span>&#160;<span class="preprocessor">#define INVALID_HANDLE_VALUE ((int)(-1))</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="a03659.html">   46</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="a03659.html">cdc_device</a></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="a03659.html#a79525e0d472c02e26e7c4aa4a780c1d9">   48</a></span>&#160;    <a class="code" href="a03537.html#ga069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a> <a class="code" href="a03659.html#a79525e0d472c02e26e7c4aa4a780c1d9">read_handle</a>;         </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="a03659.html#af11a0103eb96a026ea6782bfcad7548e">   49</a></span>&#160;    <a class="code" href="a03537.html#ga069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a> <a class="code" href="a03659.html#af11a0103eb96a026ea6782bfcad7548e">write_handle</a>;        </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;} <a class="code" href="a03537.html#ga99ee56102171adcbcecb8a78fb9fa895">cdc_device_t</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">// A structure to hold CDC information</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="a03663.html">   54</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="a03663.html">atcacdc</a></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="a03663.html#a90743aa58e9f430c381d56eb373edef4">   56</a></span>&#160;    <a class="code" href="a03659.html">cdc_device_t</a> <a class="code" href="a03663.html#a90743aa58e9f430c381d56eb373edef4">kits</a>[<a class="code" href="a03537.html#ga08b6c05184266dc4d5c8727bb9c1c754">CDC_DEVICES_MAX</a>];</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="a03663.html#a9bb0ee74044865538adfcc5d5ae8f621">   57</a></span>&#160;    int8_t       <a class="code" href="a03663.html#a9bb0ee74044865538adfcc5d5ae8f621">num_kits_found</a>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;} <a class="code" href="a03537.html#ga2df85bfd309840b4c9a5087e053d4811">atcacdc_t</a>;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* HAL_LINUX_KIT_CDC_H_ */</span><span class="preprocessor"></span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="ttc" id="a03663_html_a90743aa58e9f430c381d56eb373edef4"><div class="ttname"><a href="a03663.html#a90743aa58e9f430c381d56eb373edef4">atcacdc::kits</a></div><div class="ttdeci">cdc_device_t kits[CDC_DEVICES_MAX]</div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:56</div></div>
<div class="ttc" id="a03537_html_ga2df85bfd309840b4c9a5087e053d4811"><div class="ttname"><a href="a03537.html#ga2df85bfd309840b4c9a5087e053d4811">atcacdc_t</a></div><div class="ttdeci">struct atcacdc atcacdc_t</div></div>
<div class="ttc" id="a03659_html"><div class="ttname"><a href="a03659.html">cdc_device</a></div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:46</div></div>
<div class="ttc" id="a03537_html_ga069bb8cb95b0528d5ce0304bb5561a40"><div class="ttname"><a href="a03537.html#ga069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a></div><div class="ttdeci">int HANDLE</div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:44</div></div>
<div class="ttc" id="a03537_html_ga08b6c05184266dc4d5c8727bb9c1c754"><div class="ttname"><a href="a03537.html#ga08b6c05184266dc4d5c8727bb9c1c754">CDC_DEVICES_MAX</a></div><div class="ttdeci">#define CDC_DEVICES_MAX</div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:39</div></div>
<div class="ttc" id="a03663_html_a9bb0ee74044865538adfcc5d5ae8f621"><div class="ttname"><a href="a03663.html#a9bb0ee74044865538adfcc5d5ae8f621">atcacdc::num_kits_found</a></div><div class="ttdeci">int8_t num_kits_found</div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:57</div></div>
<div class="ttc" id="a03537_html_ga99ee56102171adcbcecb8a78fb9fa895"><div class="ttname"><a href="a03537.html#ga99ee56102171adcbcecb8a78fb9fa895">cdc_device_t</a></div><div class="ttdeci">struct cdc_device cdc_device_t</div></div>
<div class="ttc" id="a03663_html"><div class="ttname"><a href="a03663.html">atcacdc</a></div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:54</div></div>
<div class="ttc" id="a03659_html_a79525e0d472c02e26e7c4aa4a780c1d9"><div class="ttname"><a href="a03659.html#a79525e0d472c02e26e7c4aa4a780c1d9">cdc_device::read_handle</a></div><div class="ttdeci">HANDLE read_handle</div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:48</div></div>
<div class="ttc" id="a03659_html_af11a0103eb96a026ea6782bfcad7548e"><div class="ttname"><a href="a03659.html#af11a0103eb96a026ea6782bfcad7548e">cdc_device::write_handle</a></div><div class="ttdeci">HANDLE write_handle</div><div class="ttdoc">The kit USB read file handle. </div><div class="ttdef"><b>Definition:</b> hal_linux_kit_cdc.h:49</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_e870e4dac26de7990352b1cb7547818f.html">hal</a></li><li class="navelem"><a class="el" href="a00362.html">hal_linux_kit_cdc.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
